package com.wuxiaofan.secondkill.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author wuxiaofan
 * @date 2021/7/14 9:10 上午
 */
@FeignClient("gulimall-tinyid")
public interface TinyIdClient {

    @RequestMapping("/tinyid/id/nextIdSimple/{bizType}/{batchSize}/{token}")
    String nextIdSimple(@PathVariable("bizType") String bizType, @PathVariable("batchSize") Integer batchSize, @PathVariable("token") String token);

}
